package mysql

import "gorm.io/gorm"

type HemaType struct {
	gorm.Model
	TypeName string `gorm:"type:varchar(30);not null;comment:分类名称"`
}

func (t *HemaType) HemaTypeAdd(db *gorm.DB) error {
	return db.Debug().Create(t).Error
}
